package com.ruoyi.recycle.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.io.Serializable;
import java.util.Date;

/**
 * 评论管理对象 comment_management
 *
 * @author Wubk
 * @date 2022-05-22
 */
@ApiModel("评论管理")
public class CommentManagement implements Serializable {
    private static final long serialVersionUID = 1L;

    /** 主键 */
    @ApiModelProperty(name = "id", value = "评论管理id", dataType = "Long")
    private Long id;

    /** 用户名 */
    @Excel(name = "用户名")
    @ApiModelProperty(name = "userName", value = "用户", dataType = "String")
    private String userName;

    /** 评论时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(name = "commentTime",value = "评论时间",dataType = "Date",notes = "yyyy-MM-dd")
    @Excel(name = "评论时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date commentTime;

    /** 用户账号 */
    @Excel(name = "用户账号")
    @ApiModelProperty(name = "userCode",value = "用户账号",dataType = "String")
    private String userCode;

    /** 联系方式 */
    @Excel(name = "联系方式")
    @ApiModelProperty(name = "phone",value = "联系方式",dataType = "String")
    private String phone;

    /** 评论内容 */
    @Excel(name = "评论内容")
    @ApiModelProperty(name = "detail",value = "评论内容",dataType = "String")
    private String detail;

    /** 图片 */
    @Excel(name = "图片")
    @ApiModelProperty(name = "img",value = "图片",dataType = "String")
    private String img;

    /** 创建人 */
    @Excel(name = "创建人")
    @ApiModelProperty(name = "createdBy",value = "创建人",dataType = "String")
    private String createdBy;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty(name = "createdTime",value = "创建时间",dataType = "Date",notes = "yyyy-MM-dd")
    private Date createdTime;

    /** 更新人 */
    @Excel(name = "更新人")
    @ApiModelProperty(name = "updatedBy",value = "更新人",dataType = "String")
    private String updatedBy;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty(name = "updatedTime",value = "更新时间",dataType = "Date",notes = "yyyy-MM-dd")
    private Date updatedTime;

    /** 好玩（资讯管理）ID */
    @Excel(name = "好玩（资讯管理）ID")
    @ApiModelProperty(name = "consultId",value = "好玩（资讯管理）ID",dataType = "String")
    private Long consultId;

    /** 审批状态（0未审批，1审批通过） */
    @Excel(name = "审批状态（0未审批，1审批通过）")
    @ApiModelProperty(name = "status",value = "审批状态（0未审批，1审批通过）",dataType = "String")
    private String status;

    /** 客户头像 */
    @Excel(name = "审批状态（0未审批，1审批通过）")
    @ApiModelProperty(name = "clientPortrait",value = "用户头像",dataType = "String")
    private String clientPortrait;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUserName(String userName) 
    {
        this.userName = userName;
    }

    public String getUserName() 
    {
        return userName;
    }
    public void setCommentTime(Date commentTime) 
    {
        this.commentTime = commentTime;
    }

    public Date getCommentTime() 
    {
        return commentTime;
    }
    public void setUserCode(String userCode) 
    {
        this.userCode = userCode;
    }

    public String getUserCode() 
    {
        return userCode;
    }
    public void setPhone(String phone)
    {
        this.phone = phone;
    }

    public String getPhone()
    {
        return phone;
    }
    public void setDetail(String detail) 
    {
        this.detail = detail;
    }

    public String getDetail() 
    {
        return detail;
    }
    public void setImg(String img) 
    {
        this.img = img;
    }

    public String getImg() 
    {
        return img;
    }
    public void setCreatedBy(String createdBy) 
    {
        this.createdBy = createdBy;
    }

    public String getCreatedBy() 
    {
        return createdBy;
    }
    public void setCreatedTime(Date createdTime) 
    {
        this.createdTime = createdTime;
    }

    public Date getCreatedTime() 
    {
        return createdTime;
    }
    public void setUpdatedBy(String updatedBy) 
    {
        this.updatedBy = updatedBy;
    }

    public String getUpdatedBy() 
    {
        return updatedBy;
    }
    public void setUpdatedTime(Date updatedTime) 
    {
        this.updatedTime = updatedTime;
    }

    public Date getUpdatedTime() 
    {
        return updatedTime;
    }

    public Long getConsultId() {
        return consultId;
    }

    public void setConsultId(Long consultId) {
        this.consultId = consultId;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getClientPortrait() {
        return clientPortrait;
    }

    public void setClientPortrait(String clientPortrait) {
        this.clientPortrait = clientPortrait;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userName", getUserName())
            .append("commentTime", getCommentTime())
            .append("userCode", getUserCode())
            .append("phone", getPhone())
            .append("detail", getDetail())
            .append("img", getImg())
            .append("createdBy", getCreatedBy())
            .append("createdTime", getCreatedTime())
            .append("updatedBy", getUpdatedBy())
            .append("updatedTime", getUpdatedTime())
            .toString();
    }
}
